#ifndef	FILE_SYSTEM_H
#define	FILE_SYSTEM_H

#include "FString.h"

class FileData;

#define BasePath "main"

class IFileSource : public IBase
{
public:
	IFileSource (const char *theName) : IBase (theName) {}

	virtual	FileData *getFile (const FString& name) = 0;
	virtual bool MakeDir (const FString& path, bool tree);
};



class BaseFileSource : public IFileSource
{
public:
	BaseFileSource (const FString &thePath = BasePath);
	FileData *getFile (const FString& name);

private:
	FString	path;
};


#endif
